import logging
from common.config.common_config import common_path


class LogUtil(object):
    u_logging_path = common_path + '/albert.log'
    u_logging = logging
    u_logging.basicConfig(level=logging.DEBUG,
                          format='%(asctime)s %(filename)s[line:%(lineno)d] %(levelname)s %(message)s',
                          datefmt='%a, %d %b %Y %H:%M:%S',
                          filename=u_logging_path,
                          filemode='w')

    @classmethod
    def info(cls, msg):
        LogUtil.u_logging.info(msg)
        pass

    pass
